qui(function(require, exports, module) {

    NewsStatistic.Config = {

		REPEAT_INFO : ["周一","周二","周三","周四","周五","周六","周日"], //播放日期
        REGION_LIST: ['cq', 'sh', 'bj'],
        REGION_CH_LIST: ['重庆', '上海', '北京'],

        IP_LINK_AREA: {},

			TABLE_COLMODEL_CONFIG: {
				'newsName': {
					name: 'newsName',
					title: false,
					index: 'newsName',
					align:'center',
					sortable: false,
					width: 100
				},
				'channelName': {
                    name: 'channelName',
                    title: false,
                    index: 'channelName',
                    align:'center',
                    sortable: false,
                    width: 100
                },
                'serverRegion': {
                    name: 'serverRegion',
                    title: false,
                    index: 'serverRegion',
                    align:'center',
                    sortable: false,
                    width: 80
                },
                'serverIp': {
                    name: 'serverIp',
                    title: false,
                    index: 'serverIp',
                    align:'center',
                    sortable: false,
                    width: 100
                },
				'productTime': {
					name: 'productTime',
					title: false,
					index: 'productTime',
					align:'center',
					width: 100,
					sortable: false
				},
				'costTime': {
					name: 'costTime',
					title: false,
					index: 'costTime',
					width: 230,
					align:'center',
					sortable: false
				},
				'avgPercentTitle': {                    //标题平均准确率
                    name: 'avgPercentTitle',
                    title: false,
                    index: 'avgPercentTitle',
                    width: 230,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return NewsStatistic.Util.formatter.percent(v,r);
                    }
                },
                'percentWord': {                        //文字识别准确率
                    name: 'percentWord',
                    title: false,
                    index: 'percentWord',
                    width: 80,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return NewsStatistic.Util.formatter.percentWord(v,r);
                    }
                },
                'avgErrorStartNum': {                   //入点平均误差
                    name: 'avgErrorStartNum',
                    title: false,
                    index: 'avgErrorStartNum',
                    width: 80,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return NewsStatistic.Util.formatter.percent(v,r);
                    }
                },
                'percentStartNum': {                    //入点精确度
                    name: 'percentStartNum',
                    title: false,
                    index: 'percentStartNum',
                    width: 80,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return NewsStatistic.Util.formatter.percentStartNum(v,r);
                    }
                },
                'avgErrorEndNum': {                      //出点平均误差
                    name: 'avgErrorEndNum',
                    title: false,
                    index: 'avgErrorEndNum',
                    width: 80,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return NewsStatistic.Util.formatter.percent(v,r);
                    }
                },

                'percentEndNum': {                  //出点精确度
                    name: 'percentEndNum',
                    title: false,
                    index: 'percentEndNum',
                    width: 80,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return NewsStatistic.Util.formatter.percentEndNum(v,r);
                    }
                },
                'correctNewsNum': {                 //拆条后正确单条新闻视频的数量
                    name: 'correctNewsNum',
                    title: false,
                    index: 'correctNewsNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'totalNewsNum': {                    //拆条后生成视频的总数量
                    name: 'totalNewsNum',
                    title: false,
                    index: 'totalNewsNum',
                    width: 80,
                    align:'center',
                    sortable: false
                },
                'percentNews': {                         //拆条准确率
                    name: 'percentNews',
                    title: false,
                    index: 'percentNews',
                    width: 100,
                    align:'center',
                    sortable: false,
                    formatter: function(v, o, r) {
                        return NewsStatistic.Util.formatter.percentNews(v,r);
                    }
                }

			},

			TABLE: {
			    url: "/api/newsDetails/st",
			    rowNum:20,
			    multiselect: false,

			    loadBeforeSend:function(xhr, settings){
                    var auth = Ancestor.Util.getAuth(Ancestor.Config.EPG_AUTH.list);
                    xhr.setRequestHeader('Sign',auth.sign);
                    xhr.setRequestHeader("Time",auth.clientTime);
                    xhr.setRequestHeader("From",auth.from);
                    return true;
                },

			    datatype: "local",
			    loadtext: '加载中...',
                loadui: "block",
                mtype: "post",
				colNames: ["新闻节目名称", "所属电视台", "服务器", "服务器IP", "日期", "拆条时间", "标题平均准确率", "文字识别准确率",
				"入点平均误差（帧）","入点精确度","出点平均误差（帧）","出点精确度","拆条后正确单条新闻视频数量","拆条后生成视频总数量","拆条准确率"
				],
				colModel: ['newsName', 'channelName', 'serverRegion', 'serverIp', 'productTime', 'costTime', 'avgPercentTitle',
				 'percentWord', 'avgErrorStartNum', 'percentStartNum', 'avgErrorEndNum', 'percentEndNum', 'correctNewsNum',
                 'totalNewsNum','percentNews'
				]
			}
		};
});